package lab02.text11;

/**
 * Created by dell on 2017/10/25.
 */
public class Text11 {
    public static void main(String[] args) {
        Rectangle rectangle = new Rectangle();
        System.out.println("矩形：");
        rectangle.width = 3.0;
        rectangle.length = 4.0;
        rectangle.PrintMyWay();

        System.out.println("正方形：");
        Square square = new Square();
        square.length = 2;
        square.width = 2;
        square.PrintMyWay();
    }

}

